import { createRouter, createWebHistory } from "vue-router"

const routes = [
  {
    path:"/",
    name:"home",
    component: ()=> import("@/views/index.vue"),
    children:[
      {
        path:'/mdedit',
        name:'mdedit',
        component:() => import("@/views/mdedit/index.vue")
      },
      {
        path:'/mdview',
        name:'mdview',
        component:() => import("@/views/mdview/index.vue")
      },
      {
        path:'/mdvite',
        name:'mdvite',
        component:() => import("@/views/mdvite/index.vue")
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: routes
})

export default router